<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <table>
        <tr>
            <td>QQ号</td>
            <td>
                <input id="qqDom" value="947289507" type="text">
            </td>
        </tr>
        <tr>
            <td></td>
            <td>
                <input id="btn" type="button" value="提交">
            </td>
        </tr>
    </table>
    <div>
        <h1>用户信息为：</h1>
        <img src="" id="avatarDom" alt="">
    </div>
    <script src="./js/jquery.min.js"></script>
    <script>
        $("#btn").click(function(){
            $.ajax({
                url:"https://api.uomg.com/api/qq.info",
                data:{
                    qq:$("#qqDom").val()
                },
                dataType:"json",
                success(r){
                    console.log("r",r);
                    $("#avatarDom").attr("src",r.qlogo);
                }
            })
        })
    </script>
</body>
</html>